<?php

namespace app\common\model\Member;

use app\common\model\Base;

class Token extends Base
{
    protected $name = 'member_token';

    public function rm($condition = [])
    {
        $this->where($condition)->update([
            'token' => '',
            'generation_time' => time() - 1, //最后操作时间用来校验是否在线
            'data' => '[]',
            'expire_time' => 0,//免登录设置成过期
        ]);
    }
}